package com.y.report.entity.api;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Collections;
import java.util.List;
import java.util.Map;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ApiResponseInfo {

    private Long beginTime = -1L;
    private Long endTime = -1L;
    private Long elapsed = 0L;

    private List<SqlExecInfo> sqlExecInfos;

    private String status = "404";
    private Boolean returnFlag = false;
    private String errorMessage = null;
    private String message = "FAIL";
    private Object outputData = Collections.emptyMap();
    private String reqIp;

    private Map<String, Object> respCookiesTemplate;
    private Map<String, Object> respHeadersTemplate;
    private Map<String, Object> respBodyTemplate;
    private Map<String, Object> extData;
}
